import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router"

const routes: Array<RouteRecordRaw> = [
  { path: '/login', component: () => import('../views/LoginView.vue') },
  { path: '/', component: () => import('../views/HomeView.vue') },
  { path: '/products', component: () => import('../views/ProductManagement.vue') },
  { path: '/users', component: () => import('../views/UserManagement.vue') },
  { path: '/orders', component: () => import('../views/OrderManagement.vue') },
  { path: '/reports', component: () => import('../views/ReportManagement.vue') }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
